load("//tensorflow:tensorflow.default.bzl", "tf_gen_op_libs", "tf_gen_op_wrapper_cc")

package(
    # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
    default_visibility = ["//tensorflow/core/tfrt/__subpackages__"],
)

tf_gen_op_libs(
    op_lib_names = ["stream_ops"],
    sub_directory = "",
    deps = ["//tensorflow/core:lib"],
)

tf_gen_op_wrapper_cc(
    name = "gen_stream_ops",
    out_ops_file = "gen_stream_ops",
    deps = [":stream_ops_op_lib"],
)

cc_library(
    name = "gen_stream_ops_cc",
    srcs = ["gen_stream_ops.cc"],
    hdrs = ["gen_stream_ops.h"],
    deps = [
        ":stream_ops_op_lib",
        "//tensorflow/cc:const_op",
        "//tensorflow/cc:ops",
        "//tensorflow/cc:scope",
        "//tensorflow/core:framework",
        "//tensorflow/core:lib",
    ],
)
